Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add className prop for root div inserted into body #135

Closed
wants to merge 9 commits into from
Closed

Add className prop for root div inserted into body #135

wants to merge 9 commits into from

Conversation

eqyiel
Copy link

@eqyiel eqyiel commented Feb 23, 2017

This is #131 with the linter errors fixed and the tests changed to accomodate for it.

We wanted this at my workplace so that we could position the element absolutely.

Thanks for your work on react-portal!

@eqyiel
Copy link
Author

eqyiel commented Feb 28, 2017

Closing after reading #105.

If you're set on passing className and style props through React check out https://github.com/mango-chutney/react-portal, otherwise just use the DOM APIs for this.

You can get a ref to the portal like <Portal isOpen ref={(node) => { this.portal = node; }} /> and then work with this.portal.node.style and this.portal.node.classList as well as other DOM properties that this component never supported.

@eqyiel eqyiel closed this Feb 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants